from django.db import models


class Role(models.Model):
    """角色表"""
    pass


class Server(models.Model):
    """区服表"""
    manufacturer = models.ForeignKey(Role, on_delete=models.CASCADE)
    pass


class User(models.Model):
    """用户表"""
    qq = models.CharField(max_length=32)
    wx = models.CharField(max_length=32)
    update_time = models.DateTimeField(auto_now_add=True)
    servers = models.ManyToManyField(Server)
